<?
/**
 * Create link to module.
 * If param['module'] doesn't exists, create link to current module
 * If param['action'] deosn't exists, create link to index in selected module'
 */
 
 // TODO: More userfrendly links
 
function smarty_function_CreateLink($param ,&$smarty)
{
    /*$action = array_key_exists('action',$param) ? $param['action'] : 'index';
    $module = array_key_exists('module',$param) ? $param['module'] : null;
    
    if(!$module)
    {
        $vars = $smarty->get_template_vars();
        
        print_r($vars);
    }*/
    echo '/'.$param['action'];
}
?>